then set the loc of card button "ladder" to 45,208
else set the loc of card button "ladder" to 149,127
send cardOpened to background
end openCard
on move
global direction,chase,blasting,ladderPit,causeOfDeath
if direction = "north" then
go to card id 12716
exit move
end if
if direction = "east" or direction = "up" then
go card id 24153
exit move
end if
if direction = "down" then
if ladderPit then
go to card id 25762
exit move
else
answer "Do you really want to go into the pit?" with "yes"or"no"
if it is "no" then exit move
put "pit1" into causeOfDeath
go to card id 3409
exit move
end if
end if
pass move
end move
on closeCard
set the cursor to 4
put "" into field 3
end closeCard
on take
global object,carried,ladderPit,cardID,prevID
put last word of object into obj
delete first char of obj
delete last char of obj
if obj="ladder" then
hide object
set the loc of object to 149,127
put false into ladderPit
put cardID into prevID
end if
-- remember to update carried if you do not pass take
pass take
end take
on drop
global object,dropRoom,carried
answer "Drop object in this room, or into the pit?" with "pit" or "room"
if it="pit" then put 7465 into dropRoom
-- remember to update carried if you do not pass take
pass drop
end drop
on use
global object,carried,ladderPit
put last word of object into obj
delete first char of obj
delete last char of obj
if obj="ladder" then
show object
set the loc of object to 123,147
set the loc of object to 97,167
set the loc of object to 71,187
set the loc of object to 45,208
put "The rope ladder is tied to the pitons and leads into the pit." into field 3
put true into ladderPit
exit use
end if
-- update carried if object lost (or do so in inv. card button)
pass use
end use
-- part 16 (button)
-- low flags: 80
-- high flags: 2000
-- rect: left=122 top=230 right=266 bottom=156
-- title width / last selected line: 0
-- icon id / first selected line: 9301 / 9301
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: knife
----- HyperTalk script -----
on mouseUp
global takeFlag,examFlag,object,cardID
put the name of the target into object
if takeFlag = true
then send take to card id cardID
else put "a knife" into field 3
put false into examFlag
end mouseUp
-- part 17 (button)
-- low flags: 80
-- high flags: 2000
-- rect: left=88 top=230 right=266 bottom=122
-- title width / last selected line: 0
-- icon id / first selected line: 1015 / 1015
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: nodule
----- HyperTalk script -----
on mouseUp
global takeFlag,examFlag,object,cardID
put the name of the target into object
if takeFlag = true
then send take to card id cardID
else put "a silicon sphere" into field 3
put false into examFlag
end mouseUp
-- part 20 (button)
-- low flags: 80
-- high flags: 2000
-- rect: left=48 top=103 right=139 bottom=82
-- title width / last selected line: 0
-- icon id / first selected line: 24317 / 24317
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: key
----- HyperTalk script -----
on mouseUp
global takeFlag,examFlag,object,cardID
put the name of the target into object
if takeFlag = true
then send take to card id cardID
else put "a key" into field 3
put false into examFlag
end mouseUp
-- part 21 (button)
-- low flags: 80
-- high flags: 2000
-- rect: left=192 top=183 right=219 bottom=226
-- title width / last selected line: 0
-- icon id / first selected line: 7012 / 7012
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: gem
----- HyperTalk script -----
on mouseUp
global takeFlag,examFlag,object,cardID
put the name of the target into object
if takeFlag = true
then send take to card id cardID
else put "a glowing gem" into field 3
put false into examFlag
end mouseUp
-- part 22 (button)
-- low flags: 80
-- high flags: 2000
-- rect: left=178 top=223 right=259 bottom=212
-- title width / last selected line: 0
-- icon id / first selected line: 23078 / 23078
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: orb
----- HyperTalk script -----
on mouseUp
global takeFlag,examFlag,object,cardID
put the name of the target into object
if takeFlag = true
then send take to card id cardID
else put "a crystal orb" into field 3
put false into examFlag
end mouseUp
-- part 35 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=4 top=195 right=218 bottom=86
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
global examFlag,direction,cardID,takeFlag
if examFlag then
put "A bottomless pit. Looks unsafe to climb into." into field 3
put false into examFlag
else
put false into takeFlag
put "down" into direction
send move to card id cardID
end if
end mouseUp
-- part 18 (button)
-- low flags: 80
-- high flags: 2000
-- rect: left=132 top=109 right=145 bottom=166
-- title width / last selected line: 0
-- icon id / first selected line: 14953 / 14953
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: ladder
----- HyperTalk script -----
on mouseUp
global takeFlag,examFlag,object,cardID,ladderPit,direction
put the name of the target into object
if takeFlag = true then
send take to card id cardID
else
put "a rope ladder" into field 3
put false into examFlag
end if
if ladderPit then
put "down" into direction
send move to card id cardID
end if
end mouseUp
-- part 23 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=200 top=66 right=153 bottom=241
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
global examFlag,direction,cardID
if examFlag then
put "a stairway leading east and up" into field 3
put false into examFlag
else
put "east" into direction
send move to card id cardID
end if
end mouseUp
-- part 33 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=73 top=21 right=95 bottom=177
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
global examFlag,direction,cardID
if examFlag then
put "a hole blasted in the orange flowstone wall leads north" into field 3
put false into examFlag
else
put "north" into direction
send move to card id cardID
end if
end mouseUp
-- part 40 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=31 top=184 right=196 bottom=60
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
global examFlag,takeFlag,direction,cardID
if takeFlag then
put "You can't take the pitons. Thay are solidly attached." into field 3
put false into takeFlag
else
put "Two pitons imbedded in the stone." into field 3
put false into examFlag
end if
end mouseUp
-- part 41 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=20 top=217 right=249 bottom=69
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: New Button
-- part contents for background part 25
----- text -----
Bottomless Pit Room
(looking north)
-- part contents for background part 24
----- text -----
You are in the bottomless pit room. Stone stairs lead upward to the east. There is a dark, smooth-walled pit here, the bottom of which you can not see. A cold wind is whistling out of the pit with an almost deafening sound. The north wall of the room is a sheet of orange flowstone with a gaping hole blasted through it.